// query_field_wrapper_5ku7d6



function main(){
    debugger
    setTimeout(() => {
        const self = this;
        let lawId = self.params.lawId
        let queryElement1 = self.$$("query_field_wrapper_5ku7d6");
        var queryModel1 = queryElement1.data.members[0];
        if (queryModel1 && queryModel1.props && queryModel1.props.defaultValue) {
            queryModel1.props.defaultValue.value = lawId;
        }
    },1000)

}



function main() {
    debugger
    const self = this;
    const pageTableList = self.$$("page_widget_list_cmbdq5");
    const paragraphName = self.$$("single_select_chchan").cValue
    var members = pageTableList.dataEngine.state.layout.props.dataSet.filterData.filter.members;

    members = members.filter(function (item) {
        return item.uniqueIdentify !== "unitIdFilter";
    });

    members.push({
        "uniqueIdentify": "unitIdFilter",
        field: "dd4d0efc-1277-4b3d-a092-568d2c7855fa",
        fieldName: "paragraph_name",
        "fieldType": "TYPE_STRING",
        valueType: "Constant",
        values: paragraphName || [],
        value: paragraphName,
        operate: "In", // 范围查询
        className: "Single",
        treeUnitIdFiter: "1"
    });
    var filter = {
        "combine": "And",
        "className": "List",
        "members": members
    };

    pageTableList.dataEngine.state.layout.props.dataSet.filterData = {
        "enabled": true,
        "filter": filter,
        "filterType": "FILTER",
        "rawCondition": {},
        "rawFormula": ""
    }

}
